]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gnome-extensions: Translate help command
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 27 Aug 2019 16:11:33 +0000 (18:11 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 11 Sep 2019 17:09:30 +0000 (17:09 +0000)
The quotes and COMMAND string aren't part of the syntax, so they
should be translated.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1538

src/extensions-tool/main.c

index dafca212358271279223c1aae632c4f528d198ff..7cc83de9529c070d5321f6640bc13c1c0e710eaf 100644 (file)
@@ -236,6 +236,10 @@ handle_version (int argc, char *argv[], gboolean do_help)
 static void
 usage (void)
 {
+  g_autofree char *help_command = NULL;
+
+  help_command = g_strdup_printf ("gnome-extensions help %s", _("COMMAND"));
+
   g_printerr ("%s\n", _("Usage:"));
   g_printerr ("  gnome-extensions %s %s\n", _("COMMAND"), _("[ARGS…]"));
   g_printerr ("\n");
@@ -254,7 +258,7 @@ usage (void)
   g_printerr ("  pack      %s\n", _("Package extension"));
   g_printerr ("  install   %s\n", _("Install extension bundle"));
   g_printerr ("\n");
-  g_printerr (_("Use %s to get detailed help.\n"), "“gnome-extensions help COMMAND”");
+  g_printerr (_("Use “%s” to get detailed help.\n"), help_command);
 }
 
 int